package com.example.blog.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.example.blog.entity.likes;

import java.util.List;

@Repository
public interface LikesRepository extends JpaRepository<likes, Integer> {
    likes findByArticleIdAndUserId(int articleId, int userId);
    /*List<likes> findAllByarticleid(int articleid);*/
}
